package com.example.service;

import com.example.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Component
@FeignClient(value = "gec-service-provider",path = "provider")
public interface UserService {
    @GetMapping("/user")
    public List<User> findUser();
}
